﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SOEN341_SCHEDULER_PHASE1
{

    /// <summary>
    /// Generator List that can append another list
    /// </summary>
    /// <typeparam name="T">List type</typeparam>
    class GeneratorList<T> : List<T>
    {
        List<T> theList;
        /// <summary>
        /// Default constructor (inits a .NET List)
        /// </summary>
        public GeneratorList()
        {
            
        }
        /// <summary>
        /// Append list 
        /// </summary>
        /// <param name="toAppend">List to append</param>
        public void Append(List<T> toAppend)
        {

            for (int i = 0; i < toAppend.Count; i++)
            {
                Add(toAppend[i]);
            }
        }
    }
}
